/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package dbtest;

import java.sql.*;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author eid
 */
public class DbTest {

    /**
     * @param args the command line arguments
     */
    static int player1id = 1;
    static int player2id = 2;
    static ArrayList<String> names;
    static int gameid = 2;

    public static void main(String[] args) throws SQLException, InstantiationException, IllegalAccessException, ClassNotFoundException {
        //välj game ur nån meny
        Game game = new Game(1);
//        try {
//            // TODO code application logic here
//            ChessFrame chessFrame = new ChessFrame();
//            
//            DbConnector db = new DbConnector();
//            HighScoreFrame HSF = new HighScoreFrame(db);
//            //db.createPlayer("player2");
//             //db.createGame(player1id, player2id);
//            // names = db.getPlayers();
//            db.makeMove(2, "b_king", "a2");
//            //db.initBoard(gameid);
//             db.closeConnection();
//        } catch (SQLException | InstantiationException | IllegalAccessException | ClassNotFoundException ex) {
//            Logger.getLogger(DbTest.class.getName()).log(Level.SEVERE, null, ex);
//        }
    }
}
